﻿namespace Common.RunModels.Base
{
    public class UserModel
    {
        public string Id { get; set; }

        public string Code { get; set; }

        public string Name { get; set; }

        public string DepartId { get; set; }

        public string OrgId { get; set; }

        public string ApiKey { get; set; }

        /// <summary>
        /// 合宜章号
        /// </summary>
        public string ChapterCode { get; set; }

        public string LcpCode { get; set; }

        /// <summary>
        /// IQC区域ID
        /// </summary>
        public string IqcAreaId { get; set; }

        public int IqcPowerLevel { get; set; }

        /// <summary>
        /// 上级lcp编号（不同步BR系统，手动维护）
        /// </summary>
        public string SuperiorLcpCode { get; set; }

        public string ResponsibleId { get; set; }
    }

    /// <summary>
    /// 根据用户ID获取所属部门下的用户集合请求参数
    /// </summary>
    public class UsersByUserIdModel
    {
        /// <summary>
        /// 是否获取所有子级部门
        /// </summary>
        public bool IsGetAllChildrenDepartModel { get; set; } = false;

        /// <summary>
        /// 部门层级：3=生产课，4=生产部
        /// </summary>
        public int DepartLevel { get; set; }
    }

    /// <summary>
    /// 根据用户ID获取所属部门下的用户集合响应参数
    /// </summary>
    public class DepartUserResultModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 用户编号
        /// </summary>
        public string UserCode { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 所属部门名称
        /// </summary>
        public string DepartName { get; set; }
    }
}
